jQuery(document).ready(function($) {  var ticker = function()  {   setTimeout(function(){    $(&quot;ul.ticker-list li:first&quot;).animate( {marginTop: &#39;-30px&#39;}, 800, function()    {     $(this).detach().appendTo(&quot;ul.ticker-list&quot;).removeAttr(&quot;style&quot;);     });    ticker();   }, 5000);  };  ticker();  }); 

$(document).ready(function(){
 $(&quot;ul.subnav, ul.subnav_last&quot;).parent().append(&quot;<span/>&quot;); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
 
 $(&quot;ul.topnav li span&quot;).click(function() { //When trigger is clicked...
   //Following events are applied to the subnav itself (moving subnav up and down)
  $(this).parent().find(&quot;ul.subnav, ul.subnav_last&quot;).slideDown(&#39;fast&#39;).show(); //Drop down the subnav on click
  $(this).parent().hover(function() {
  }, function(){ 
   $(this).parent().find(&quot;ul.subnav, ul.subnav_last&quot;).slideUp(&#39;slow&#39;); //When the mouse hovers out of the subnav, move it back up
  });
  //Following events are applied to the trigger (Hover events for the trigger)
  }).hover(function() { 
   $(this).addClass(&quot;subhover&quot;); //On hover over, add class &quot;subhover&quot;
  }, function(){ //On Hover Out
   $(this).removeClass(&quot;subhover&quot;); //On hover out, remove class &quot;subhover&quot;
 });
});
